package multipowny.ssrr;

import android.app.Activity;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;

public class MenuActivity extends Activity{

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.menu);

		Button startButton = (Button) findViewById(R.id.StartButton);
		Button helpButton = (Button) findViewById(R.id.HelpButton);
		Button stopButton = (Button) findViewById(R.id.StopButton);
		TextView titleTextView = (TextView) findViewById(R.id.TitelTextView);

		titleTextView.setTextColor(Color.RED);

		startButton.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
				Intent i = new Intent(MenuActivity.this, MultipownyActivity.class);
				startActivity(i);
			}
		});

		helpButton.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
				Intent i = new Intent(MenuActivity.this, HelpActivity.class);
				startActivity(i);
			}

		});

		stopButton.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
				finish();
			}

		});
		if (getIntent().getBooleanExtra("EXIT", false)) {
			finish();
		}
	}
}
